package org.simpleframe.web.work.action;

import org.simpleframe.web.pub.BaseAction;
import org.simpleframe.web.work.bean.User;

import com.opensymphony.xwork2.ActionSupport;

public class UserAction extends BaseAction {
	private User user;
	private String result=INPUT;
	public String login() {
		if ("xieyuan".equals((user.getUserName()))
				&& "xieyuan".equals(user.getPassWord())) {
			result=SUCCESS;
		}
		return result;
	}
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
}
